package com.healthcloud.service.testresult.impl;

import com.healthcloud.dao.testresult.BloodSugarTestResultDao;
import com.healthcloud.entity.testresult.BloodSugarTestResultEntity;
import com.healthcloud.service.testresult.BloodSugarTestResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class BloodSugarTestResultServiceImpl implements BloodSugarTestResultService {

    @Autowired
    private BloodSugarTestResultDao bloodSugarTestResultDao;

    /**
     * 根据设备编号，列表查询血糖测试记录
     * @param devicesn
     * @return
     */
    @Override
    public List<BloodSugarTestResultEntity> listBSTestResults(String devicesn) {
        return bloodSugarTestResultDao.listBSTestResults(devicesn);
    }
}